package com.goodving.guli.bt.ui;

import android.app.Activity;
import android.app.Fragment;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.goodving.guli.R;
import com.goodving.guli.view.C0804t;

/**
 * Created by john on 2015/12/4.
 */
public abstract class C1795p extends Fragment {
    protected TextView f8751a;

    private void m13555a(View view) {
        this.f8751a = (TextView) view.findViewById(R.id.home_back);
        if (this.f8751a != null) {
            this.f8751a.setOnClickListener(new C1851q(this));
            if (C0804t.m8835a() && !m13559b()) {
                this.f8751a.setTextSize(14.0f);
            }
        }
    }

    class C1851q implements View.OnClickListener {
        final /* synthetic */ C1795p f10363a;

        C1851q(C1795p c1795p) {
            this.f10363a = c1795p;
        }

        public void onClick(View view) {
            this.f10363a.m13556a();
        }
    }

    protected void m13556a() {
        Activity activity = getActivity();
        if (activity != null) {
            activity.finish();
        }
    }

    protected void m13557a(String str) {
        this.f8751a.setText(str);
    }

    protected void m13558b(int i) {
        this.f8751a.setText(i);
    }

    protected boolean m13559b() {
        return false;
    }

    public void onViewCreated(View view, Bundle bundle) {
        super.onViewCreated(view, bundle);
        m13555a(view);
    }
}
